﻿//-----------------------------------------------------------------------
// <copyright>
//     Copyright (c) Artur Mustafin. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using Excel.Expressions.Interfaces;

namespace Excel.Expressions.Functions
{
    internal class Max : IBinaryFunction
    {
        public string Name
        {
            get
            {
                return "MAX";
            }
        }

        public Func<double, double, double> Eval
        {
            get
            {
                return (a, b) => Math.Max(a, b);
            }
        }
    }
}
